﻿using System;

namespace Cms.Domain
{
    public class Comment
    {
        private bool _approved;
        private DateTime _created;

        public Comment()
        {
            _created = DateTime.Now;
            _approved = false;
        }
        
        public virtual int ID { get; set; }
        
        public virtual Page Page { get; set; }

        public virtual Content Content { get; set; }

        public virtual Locale Locale { get; set; }

        public virtual string Text { get; set; }
        
        public virtual string Name { get; set; }

        public virtual User User { get; set; }
        
        public virtual bool Approved
        {
            get { return _approved; }
            set { _approved = value; }
        }
        
        public virtual DateTime Created
        {
            get { return _created; }
            set { _created = value; }
        }
    }
}